.class public Lnet/tsapps/topdeals/views/TabView;
.super Landroid/widget/LinearLayout;


# instance fields
.field private a:Landroid/widget/LinearLayout;

.field private b:Landroid/widget/LinearLayout;

.field private c:Landroid/widget/LinearLayout;

.field private d:Landroid/widget/LinearLayout;

.field private e:Landroid/widget/LinearLayout;

.field private f:Landroid/widget/LinearLayout;

.field private g:Landroid/widget/TextView;

.field private h:Landroid/widget/TextView;

.field private i:Landroid/widget/TextView;

.field private j:Landroid/widget/LinearLayout;

.field private k:Landroid/widget/LinearLayout;

.field private l:Landroid/widget/LinearLayout;

.field private m:I


# direct methods
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 5

    const/4 v4, 0x2

    const/4 v3, 0x1

    const/4 v2, 0x0

    invoke-direct {p0, p1, p2}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    iput v2, p0, Lnet/tsapps/topdeals/views/TabView;->m:I

    invoke-virtual {p0}, Lnet/tsapps/topdeals/views/TabView;->getContext()Landroid/content/Context;

    move-result-object v0

    const-string v1, "layout_inflater"

    invoke-virtual {v0, v1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/LayoutInflater;

    const v1, 0x7f030020

    invoke-virtual {v0, v1, p0}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lnet/tsapps/topdeals/views/TabView;->a:Landroid/widget/LinearLayout;

    iget-object v0, p0, Lnet/tsapps/topdeals/views/TabView;->a:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v2}, Landroid/widget/LinearLayout;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    invoke-virtual {v0, v2}, Landroid/widget/LinearLayout;->getChildAt(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/LinearLayout;

    iput-object v1, p0, Lnet/tsapps/topdeals/views/TabView;->b:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v3}, Landroid/widget/LinearLayout;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lnet/tsapps/topdeals/views/TabView;->c:Landroid/widget/LinearLayout;

    iget-object v0, p0, Lnet/tsapps/topdeals/views/TabView;->b:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v2}, Landroid/widget/LinearLayout;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lnet/tsapps/topdeals/views/TabView;->d:Landroid/widget/LinearLayout;

    iget-object v0, p0, Lnet/tsapps/topdeals/views/TabView;->b:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v3}, Landroid/widget/LinearLayout;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lnet/tsapps/topdeals/views/TabView;->e:Landroid/widget/LinearLayout;

    iget-object v0, p0, Lnet/tsapps/topdeals/views/TabView;->b:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v4}, Landroid/widget/LinearLayout;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lnet/tsapps/topdeals/views/TabView;->f:Landroid/widget/LinearLayout;

    iget-object v0, p0, Lnet/tsapps/topdeals/views/TabView;->d:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v2}, Landroid/widget/LinearLayout;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lnet/tsapps/topdeals/views/TabView;->g:Landroid/widget/TextView;

    iget-object v0, p0, Lnet/tsapps/topdeals/views/TabView;->e:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v2}, Landroid/widget/LinearLayout;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lnet/tsapps/topdeals/views/TabView;->h:Landroid/widget/TextView;

    iget-object v0, p0, Lnet/tsapps/topdeals/views/TabView;->f:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v2}, Landroid/widget/LinearLayout;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lnet/tsapps/topdeals/views/TabView;->i:Landroid/widget/TextView;

    iget-object v0, p0, Lnet/tsapps/topdeals/views/TabView;->c:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v2}, Landroid/widget/LinearLayout;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lnet/tsapps/topdeals/views/TabView;->j:Landroid/widget/LinearLayout;

    iget-object v0, p0, Lnet/tsapps/topdeals/views/TabView;->c:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v3}, Landroid/widget/LinearLayout;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lnet/tsapps/topdeals/views/TabView;->k:Landroid/widget/LinearLayout;

    iget-object v0, p0, Lnet/tsapps/topdeals/views/TabView;->c:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v4}, Landroid/widget/LinearLayout;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lnet/tsapps/topdeals/views/TabView;->l:Landroid/widget/LinearLayout;

    return-void
.end method


# virtual methods
.method public final a()I
    .locals 1

    iget v0, p0, Lnet/tsapps/topdeals/views/TabView;->m:I

    return v0
.end method

.method public final a(I)V
    .locals 7

    const v6, 0x7f02004b

    const/4 v5, 0x1

    const/16 v4, 0x8

    const/4 v3, 0x0

    const/4 v2, 0x0

    if-nez p1, :cond_0

    iput v2, p0, Lnet/tsapps/topdeals/views/TabView;->m:I

    iget-object v0, p0, Lnet/tsapps/topdeals/views/TabView;->d:Landroid/widget/LinearLayout;

    const v1, 0x7f020049

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setBackgroundResource(I)V

    iget-object v0, p0, Lnet/tsapps/topdeals/views/TabView;->e:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v6}, Landroid/widget/LinearLayout;->setBackgroundResource(I)V

    iget-object v0, p0, Lnet/tsapps/topdeals/views/TabView;->f:Landroid/widget/LinearLayout;

    const v1, 0x7f02004d

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setBackgroundResource(I)V

    iget-object v0, p0, Lnet/tsapps/topdeals/views/TabView;->j:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v2}, Landroid/widget/LinearLayout;->setVisibility(I)V

    iget-object v0, p0, Lnet/tsapps/topdeals/views/TabView;->k:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v4}, Landroid/widget/LinearLayout;->setVisibility(I)V

    iget-object v0, p0, Lnet/tsapps/topdeals/views/TabView;->l:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v4}, Landroid/widget/LinearLayout;->setVisibility(I)V

    iget-object v0, p0, Lnet/tsapps/topdeals/views/TabView;->g:Landroid/widget/TextView;

    invoke-virtual {v0, v3, v5}, Landroid/widget/TextView;->setTypeface(Landroid/graphics/Typeface;I)V

    iget-object v0, p0, Lnet/tsapps/topdeals/views/TabView;->h:Landroid/widget/TextView;

    invoke-virtual {v0, v3, v2}, Landroid/widget/TextView;->setTypeface(Landroid/graphics/Typeface;I)V

    iget-object v0, p0, Lnet/tsapps/topdeals/views/TabView;->i:Landroid/widget/TextView;

    invoke-virtual {v0, v3, v2}, Landroid/widget/TextView;->setTypeface(Landroid/graphics/Typeface;I)V

    :goto_0
    return-void

    :cond_0
    if-ne p1, v5, :cond_1

    iput v5, p0, Lnet/tsapps/topdeals/views/TabView;->m:I

    iget-object v0, p0, Lnet/tsapps/topdeals/views/TabView;->d:Landroid/widget/LinearLayout;

    const v1, 0x7f02004c

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setBackgroundResource(I)V

    iget-object v0, p0, Lnet/tsapps/topdeals/views/TabView;->e:Landroid/widget/LinearLayout;

    const v1, 0x7f020048

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setBackgroundResource(I)V

    iget-object v0, p0, Lnet/tsapps/topdeals/views/TabView;->f:Landroid/widget/LinearLayout;

    const v1, 0x7f02004d

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setBackgroundResource(I)V

    iget-object v0, p0, Lnet/tsapps/topdeals/views/TabView;->j:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v4}, Landroid/widget/LinearLayout;->setVisibility(I)V

    iget-object v0, p0, Lnet/tsapps/topdeals/views/TabView;->k:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v2}, Landroid/widget/LinearLayout;->setVisibility(I)V

    iget-object v0, p0, Lnet/tsapps/topdeals/views/TabView;->l:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v4}, Landroid/widget/LinearLayout;->setVisibility(I)V

    iget-object v0, p0, Lnet/tsapps/topdeals/views/TabView;->g:Landroid/widget/TextView;

    invoke-virtual {v0, v3, v2}, Landroid/widget/TextView;->setTypeface(Landroid/graphics/Typeface;I)V

    iget-object v0, p0, Lnet/tsapps/topdeals/views/TabView;->h:Landroid/widget/TextView;

    invoke-virtual {v0, v3, v5}, Landroid/widget/TextView;->setTypeface(Landroid/graphics/Typeface;I)V

    iget-object v0, p0, Lnet/tsapps/topdeals/views/TabView;->i:Landroid/widget/TextView;

    invoke-virtual {v0, v3, v2}, Landroid/widget/TextView;->setTypeface(Landroid/graphics/Typeface;I)V

    goto :goto_0

    :cond_1
    const/4 v0, 0x2

    iput v0, p0, Lnet/tsapps/topdeals/views/TabView;->m:I

    iget-object v0, p0, Lnet/tsapps/topdeals/views/TabView;->d:Landroid/widget/LinearLayout;

    const v1, 0x7f02004c

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setBackgroundResource(I)V

    iget-object v0, p0, Lnet/tsapps/topdeals/views/TabView;->e:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v6}, Landroid/widget/LinearLayout;->setBackgroundResource(I)V

    iget-object v0, p0, Lnet/tsapps/topdeals/views/TabView;->f:Landroid/widget/LinearLayout;

    const v1, 0x7f02004a

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setBackgroundResource(I)V

    iget-object v0, p0, Lnet/tsapps/topdeals/views/TabView;->j:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v4}, Landroid/widget/LinearLayout;->setVisibility(I)V

    iget-object v0, p0, Lnet/tsapps/topdeals/views/TabView;->k:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v4}, Landroid/widget/LinearLayout;->setVisibility(I)V

    iget-object v0, p0, Lnet/tsapps/topdeals/views/TabView;->l:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v2}, Landroid/widget/LinearLayout;->setVisibility(I)V

    iget-object v0, p0, Lnet/tsapps/topdeals/views/TabView;->g:Landroid/widget/TextView;

    invoke-virtual {v0, v3, v2}, Landroid/widget/TextView;->setTypeface(Landroid/graphics/Typeface;I)V

    iget-object v0, p0, Lnet/tsapps/topdeals/views/TabView;->h:Landroid/widget/TextView;

    invoke-virtual {v0, v3, v2}, Landroid/widget/TextView;->setTypeface(Landroid/graphics/Typeface;I)V

    iget-object v0, p0, Lnet/tsapps/topdeals/views/TabView;->i:Landroid/widget/TextView;

    invoke-virtual {v0, v3, v5}, Landroid/widget/TextView;->setTypeface(Landroid/graphics/Typeface;I)V

    goto :goto_0
.end method

.method public final b(I)V
    .locals 3

    iget-object v0, p0, Lnet/tsapps/topdeals/views/TabView;->h:Landroid/widget/TextView;

    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "KOMMENTARE ("

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, ")"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    return-void
.end method

.method protected onAttachedToWindow()V
    .locals 2

    invoke-super {p0}, Landroid/widget/LinearLayout;->onAttachedToWindow()V

    iget-object v0, p0, Lnet/tsapps/topdeals/views/TabView;->d:Landroid/widget/LinearLayout;

    new-instance v1, Lnet/tsapps/topdeals/views/c;

    invoke-direct {v1, p0}, Lnet/tsapps/topdeals/views/c;-><init>(Lnet/tsapps/topdeals/views/TabView;)V

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lnet/tsapps/topdeals/views/TabView;->e:Landroid/widget/LinearLayout;

    new-instance v1, Lnet/tsapps/topdeals/views/b;

    invoke-direct {v1, p0}, Lnet/tsapps/topdeals/views/b;-><init>(Lnet/tsapps/topdeals/views/TabView;)V

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lnet/tsapps/topdeals/views/TabView;->f:Landroid/widget/LinearLayout;

    new-instance v1, Lnet/tsapps/topdeals/views/a;

    invoke-direct {v1, p0}, Lnet/tsapps/topdeals/views/a;-><init>(Lnet/tsapps/topdeals/views/TabView;)V

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    return-void
.end method

.method protected onDetachedFromWindow()V
    .locals 2

    const/4 v1, 0x0

    invoke-super {p0}, Landroid/widget/LinearLayout;->onDetachedFromWindow()V

    iget-object v0, p0, Lnet/tsapps/topdeals/views/TabView;->d:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lnet/tsapps/topdeals/views/TabView;->e:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lnet/tsapps/topdeals/views/TabView;->f:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    return-void
.end method
